package com.huluobo.base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.huluobo.base.bean.Money

/**
 *  Created by LC on 2024/11/1.
 */
@Dao
interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertMoney(money: Money)

    @Update
    suspend fun updateMoney(money: Money)

    @Delete
    suspend fun deleteMoney(money: Money)

    @Query("select * from money_info where username=:username")
    suspend fun queryMoneyByName(username: String): Money
}